function getYearMonthDay(date) {
    let year = date.getFullYear();
    let month = date.getMonth();
    let day = date.getDate();
    return {
        year,month,day
    }
}

function getFirstDay(year, month) {
    let firstDay = new Date(year,month,1);
    return firstDay;
}

export {
    getYearMonthDay,
    getFirstDay
}